package com.chrray.position.domain.dto.search;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 工作岗位表 参数层对象
 * 	BaseParam 为公共分页参数对象
 *
 * @author wusiwee
 * @email wusiwee@163.com
 * @since 1.0.1 2024-08-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "工作岗位表")
public class FdJobPostingsSearch extends BaseParam {

	@ApiModelProperty(value = "主键ID")
	private Long id;

	@ApiModelProperty(value = "发布人id")
	private Long userId;

	@ApiModelProperty(value = "乡镇（新农人）")
	private String township;

	@ApiModelProperty(value = "工种名称")
	private String jobName;

	@ApiModelProperty(value = "工种类目：关联职位菜单")
	private Long jobCategory;

	@ApiModelProperty(value = "计算方式：1-计时,2-计件")
	private Integer calcMethod;

	@ApiModelProperty(value = "报酬单价：元")
	private BigDecimal salaryPrice;

	@ApiModelProperty(value = "报酬单位：1-小时,2-天,3-月")
	private String salaryUnit;

	@ApiModelProperty(value = "职位性质：1-短期,2-长期,3-新农人")
	private Integer jobType;

	@ApiModelProperty(value = "工作日期开始：年月日")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
	private Date workDateStart;

	@ApiModelProperty(value = "工作日期结束：年月日")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
	private Date workDateEnd;

	@ApiModelProperty(value = "工作时段开始：时分")
	private Object workTimeStart;

	@ApiModelProperty(value = "工作时段结束：时分")
	private Object workTimeEnd;

	@ApiModelProperty(value = "工作地址")
	private String workAddress;

	@ApiModelProperty(value = "工作地址,经度")
	private Double lat;

	@ApiModelProperty(value = "工作地址,纬度")
	private Double lon;

	@ApiModelProperty(value = "工作地址行政区")
	private String districtId;

	@ApiModelProperty(value = "工作内容")
	private String workContent;

	@ApiModelProperty(value = "相关照片")
	private String relatedImges;

	@ApiModelProperty(value = "人数")
	private Integer numberOfWorkers;

	@ApiModelProperty(value = "性别：1-男,2-女")
	private Integer gender;

	@ApiModelProperty(value = "年龄开始,岁")
	private Integer ageStart;

	@ApiModelProperty(value = "年龄结束,岁")
	private Integer ageEnd;

	@ApiModelProperty(value = "身高开始,厘米")
	private Integer heightStart;

	@ApiModelProperty(value = "身高结束,厘米")
	private Integer heightEnd;

	@ApiModelProperty(value = "是否需要专业经验,0-不需要,1-需要")
	private Integer requiresExperience;

	@ApiModelProperty(value = "联系人姓名")
	private String contactName;

	@ApiModelProperty(value = "联系人手机号")
	private String contactPhone;

	@ApiModelProperty(value = "状态：0-待审核／-1 驳回／1-进行中／2-已完成／3-已结束")
	private Integer status;

	@ApiModelProperty(value = "是否管理员发布：0-否,1-是")
	private Integer isAdminPublished;

	@ApiModelProperty(value = "发布时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
	private Date publishTime;

	private Integer delFlag;


}
